// $Id


/**
 * Qt interface header file.
 *
 * @file Qt.h
 * @author Wim Leers
 */


#ifndef QTGUI_H
#define QTGUI_H

#include "Game.h"
#include "PlayerDB.h"
#include "Qt/ReversiMainWindow.h"
#include <QObject>

class QtGui : public QObject {
	Q_OBJECT

	public:
		QtGui(int argc = 0, char ** argv = NULL);
		virtual ~QtGui(void);
		void DrawBoard(void) const;

	private:
		Game * m_game;
		string m_p1Name, m_p2Name;
		ReversiMainWindow * m_mainWindow;

		void EndGame(void) const;

	public slots:
		void CatchMove(int x, int y);
};

#endif
